package com.asiainfo.ssm.execute.util;

import com.ai.appframe2.complex.cache.CacheFactory;
import com.asiainfo.ssm.execute.cache.CriticalPointCacheImpl;
import com.asiainfo.ssm.execute.cache.CriticalPointPluginCacheImpl;
import com.asiainfo.ssm.execute.ivalues.IBOCriticalPointDefValue;
import com.asiainfo.ssm.execute.ivalues.IBOExecPluginDefValue;

public class CriticalPointUtil {
 
	
	public static IBOCriticalPointDefValue getCriticalPoint(long pointId) throws Exception {
		return (IBOCriticalPointDefValue) CacheFactory.get(CriticalPointCacheImpl.class, pointId);
	}
	
	public static IBOExecPluginDefValue getCriticalPointPlugin(long pointId) throws Exception {
		return (IBOExecPluginDefValue) CacheFactory.get(CriticalPointPluginCacheImpl.class, pointId);
	}
}
